From: Keir Fraser Date: Thu, 20 Aug 2009 17:27:31 +0000 (+0100) Subject: x86_64 hvm: Adjust COMPAT_VIRT_START for 32-bit HVM guests. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13440 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=6d4af7fc297138f6af312170c900cb80f8659a26;p=xen.git x86_64 hvm: Adjust COMPAT_VIRT_START for 32-bit HVM guests. The PV limit should not apply as there is no M2P table mapped into an HVM guest's virtual address space. Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 80c6bd4a57..d0eaba2f8f 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -448,7 +448,8 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags) #endif /* __x86_64__ */ #ifdef CONFIG_COMPAT - HYPERVISOR_COMPAT_VIRT_START(d) = __HYPERVISOR_COMPAT_VIRT_START; + HYPERVISOR_COMPAT_VIRT_START(d) = + is_hvm_domain(d) ? ~0u : __HYPERVISOR_COMPAT_VIRT_START; #endif if ( (rc = paging_domain_init(d)) != 0 )